package com.office.system.domain;

import com.office.common.annotation.Excel;
import com.office.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 支出记录对象 finance_expense
 * 
 * @author 数字牧马人
 */
public class FinanceExpense extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 支出ID */
    private Long expenseId;

    /** 支出编号 */
    @Excel(name = "支出编号")
    private String expenseNo;

    /** 账户ID */
    @Excel(name = "账户ID")
    private Long accountId;

    /** 支出分类ID */
    @Excel(name = "支出分类ID")
    private Long categoryId;

    /** 支出金额 */
    @Excel(name = "支出金额")
    private BigDecimal amount;

    /** 支出日期 */
    @Excel(name = "支出日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date expenseDate;

    /** 收款方 */
    @Excel(name = "收款方")
    private String payee;

    /** 支出描述 */
    @Excel(name = "支出描述")
    private String description;

    /** 附件URL */
    private String attachmentUrl;

    /** 状态 */
    @Excel(name = "状态", readConverterExp = "0=待审批,1=已审批,2=已支付,3=已取消")
    private String status;

    /** 审批人 */
    @Excel(name = "审批人")
    private String approver;

    /** 审批时间 */
    @Excel(name = "审批时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date approveTime;

    /** 账户名称 */
    private String accountName;

    /** 分类名称 */
    private String categoryName;

    public void setExpenseId(Long expenseId) 
    {
        this.expenseId = expenseId;
    }

    public Long getExpenseId() 
    {
        return expenseId;
    }
    public void setExpenseNo(String expenseNo) 
    {
        this.expenseNo = expenseNo;
    }

    public String getExpenseNo() 
    {
        return expenseNo;
    }
    public void setAccountId(Long accountId) 
    {
        this.accountId = accountId;
    }

    public Long getAccountId() 
    {
        return accountId;
    }
    public void setCategoryId(Long categoryId) 
    {
        this.categoryId = categoryId;
    }

    public Long getCategoryId() 
    {
        return categoryId;
    }
    public void setAmount(BigDecimal amount) 
    {
        this.amount = amount;
    }

    public BigDecimal getAmount() 
    {
        return amount;
    }
    public void setExpenseDate(Date expenseDate) 
    {
        this.expenseDate = expenseDate;
    }

    public Date getExpenseDate() 
    {
        return expenseDate;
    }
    public void setPayee(String payee) 
    {
        this.payee = payee;
    }

    public String getPayee() 
    {
        return payee;
    }
    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }
    public void setAttachmentUrl(String attachmentUrl) 
    {
        this.attachmentUrl = attachmentUrl;
    }

    public String getAttachmentUrl() 
    {
        return attachmentUrl;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setApprover(String approver) 
    {
        this.approver = approver;
    }

    public String getApprover() 
    {
        return approver;
    }
    public void setApproveTime(Date approveTime) 
    {
        this.approveTime = approveTime;
    }

    public Date getApproveTime() 
    {
        return approveTime;
    }

    public String getAccountName() {
        return accountName;
    }

    public void setAccountName(String accountName) {
        this.accountName = accountName;
    }

    public String getCategoryName() {
        return categoryName;
    }

    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("expenseId", getExpenseId())
            .append("expenseNo", getExpenseNo())
            .append("accountId", getAccountId())
            .append("categoryId", getCategoryId())
            .append("amount", getAmount())
            .append("expenseDate", getExpenseDate())
            .append("payee", getPayee())
            .append("description", getDescription())
            .append("attachmentUrl", getAttachmentUrl())
            .append("status", getStatus())
            .append("approver", getApprover())
            .append("approveTime", getApproveTime())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
} 